package be.ac.ua.pats.thesisrobotica.device.main;

//~--- non-JDK imports --------------------------------------------------------

import be.ac.ua.pats.rr.entity.InitialisationException;
import be.ac.ua.pats.thesisrobotica.device.NXTRobot;
import be.ac.ua.pats.thesisrobotica.device.exceptions.NotInitialisedException;

//~--- JDK imports ------------------------------------------------------------

import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author Admin
 */
public class Driver {
    public static void main(String args[]) {
        try {
            NXTRobot robot = new NXTRobot();

            robot.initialise();
            robot.getList();
            Thread.currentThread().join();
        } catch (be.ac.ua.pats.rr.entity.NotInitialisedException ex) {
            System.out.println("NotInitialisedException in Driver:main()");
        } catch (InitialisationException ex) {
            System.out.println("InitialisationException in Driver:main()");
        } catch (InterruptedException ex) {
            System.out.println("InterruptedException in Driver:main()");
        }
    }
}
